package com.ruoyi.bargain.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.base.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 砍价活动表 wxact_bargain
 * 
 * @author lzy
 * @date 2019-03-07
 */
public class Bargain extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** ID */
	private String id;
	/** 砍价活动名称 */
	private String actName;
	/** 活动描述 */
	private String actDetail;
	/** 活动规则 */
	private String actRule;
	/** 活动开始时间 */
	private Date begainTime;
	/**  活动结束时间 */
	private Date endTime;
	/** 产品数量 */
	private Integer productNum;
	/** 产品单位 */
	private String productUnit;
	/** 产品名称 */
	private String productName;
	/** 产品价格 */
	private BigDecimal productPrice;
	/** 产品图片 */
	private String productImg;
	/** 是否关注用户参与 */
	private String foucsUserCanJoin;
	/** 展示比例 */
	private Integer showRate;
	/** 创建时间 */
	private Date createTime;
	/** 产品剩余数量 */
	private Integer productRemainNum;
	/** 砍价最低金额 */
	private BigDecimal cutMinPrice;
	/** 模版简称 */
	private String template;
	/**  */
	private String shortUrl;
	/** 入口地址 */
	private String hdurl;
	/** 对应微信平台原始id */
	private String jwid;
	/** 活动编码 */
	private String projectCode;

	public void setId(String id) 
	{
		this.id = id;
	}

	public String getId() 
	{
		return id;
	}
	public void setActName(String actName) 
	{
		this.actName = actName;
	}

	public String getActName() 
	{
		return actName;
	}
	public void setActDetail(String actDetail) 
	{
		this.actDetail = actDetail;
	}

	public String getActDetail() 
	{
		return actDetail;
	}
	public void setActRule(String actRule) 
	{
		this.actRule = actRule;
	}

	public String getActRule() 
	{
		return actRule;
	}
	public void setBegainTime(Date begainTime) 
	{
		this.begainTime = begainTime;
	}

	public Date getBegainTime() 
	{
		return begainTime;
	}
	public void setEndTime(Date endTime) 
	{
		this.endTime = endTime;
	}

	public Date getEndTime() 
	{
		return endTime;
	}
	public void setProductNum(Integer productNum) 
	{
		this.productNum = productNum;
	}

	public Integer getProductNum() 
	{
		return productNum;
	}
	public void setProductUnit(String productUnit) 
	{
		this.productUnit = productUnit;
	}

	public String getProductUnit() 
	{
		return productUnit;
	}
	public void setProductName(String productName) 
	{
		this.productName = productName;
	}

	public String getProductName() 
	{
		return productName;
	}
	public void setProductPrice(BigDecimal productPrice) 
	{
		this.productPrice = productPrice;
	}

	public BigDecimal getProductPrice() 
	{
		return productPrice;
	}
	public void setProductImg(String productImg) 
	{
		this.productImg = productImg;
	}

	public String getProductImg() 
	{
		return productImg;
	}
	public void setFoucsUserCanJoin(String foucsUserCanJoin) 
	{
		this.foucsUserCanJoin = foucsUserCanJoin;
	}

	public String getFoucsUserCanJoin() 
	{
		return foucsUserCanJoin;
	}
	public void setShowRate(Integer showRate) 
	{
		this.showRate = showRate;
	}

	public Integer getShowRate() 
	{
		return showRate;
	}
	public void setCreateTime(Date createTime) 
	{
		this.createTime = createTime;
	}

	public Date getCreateTime() 
	{
		return createTime;
	}
	public void setProductRemainNum(Integer productRemainNum) 
	{
		this.productRemainNum = productRemainNum;
	}

	public Integer getProductRemainNum() 
	{
		return productRemainNum;
	}
	public void setCutMinPrice(BigDecimal cutMinPrice) 
	{
		this.cutMinPrice = cutMinPrice;
	}

	public BigDecimal getCutMinPrice() 
	{
		return cutMinPrice;
	}
	public void setTemplate(String template) 
	{
		this.template = template;
	}

	public String getTemplate() 
	{
		return template;
	}
	public void setShortUrl(String shortUrl) 
	{
		this.shortUrl = shortUrl;
	}

	public String getShortUrl() 
	{
		return shortUrl;
	}
	public void setHdurl(String hdurl) 
	{
		this.hdurl = hdurl;
	}

	public String getHdurl() 
	{
		return hdurl;
	}
	public void setJwid(String jwid) 
	{
		this.jwid = jwid;
	}

	public String getJwid() 
	{
		return jwid;
	}
	public void setProjectCode(String projectCode) 
	{
		this.projectCode = projectCode;
	}

	public String getProjectCode() 
	{
		return projectCode;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("actName", getActName())
            .append("actDetail", getActDetail())
            .append("actRule", getActRule())
            .append("begainTime", getBegainTime())
            .append("endTime", getEndTime())
            .append("productNum", getProductNum())
            .append("productUnit", getProductUnit())
            .append("productName", getProductName())
            .append("productPrice", getProductPrice())
            .append("productImg", getProductImg())
            .append("foucsUserCanJoin", getFoucsUserCanJoin())
            .append("showRate", getShowRate())
            .append("createTime", getCreateTime())
            .append("productRemainNum", getProductRemainNum())
            .append("cutMinPrice", getCutMinPrice())
            .append("template", getTemplate())
            .append("shortUrl", getShortUrl())
            .append("hdurl", getHdurl())
            .append("jwid", getJwid())
            .append("projectCode", getProjectCode())
            .toString();
    }
}
